<div id="footer">
	<div class="wauto">
        <ul class="flink">
        	<li class="fjx"><a href="/">Trang chủ</a></li>
			<?php
                $pages	=	$db->database("p_id,p_title","pages","p_status = 0 ORDER BY p_id LIMIT 3");
                for($i=0;$i<count($pages);$i++) {	
                    $pages_url	=	url_link($pages[$i][1],$pages[$i][0],'pages');
                    echo "<li><a title=\"".$pages[$i][1]."\" href=\"$pages_url\">".$pages[$i][1]."</a></li>";
                }
            ?>
        	<li><a href="rss">Rss</a></li>
            <li><a href="sitemap.xml">Sitemap</a></li>
			 <br class="clr"/>
			 <div class="info">
			 <?=nl2br(getConfig(1));?>
			</div>
			<div class="textlink">
			 <?php 
				$textlink		=	$db->database("cf_name,cf_value","config","cf_id = 3");
				echo $textlink[0][1];
			 ?>
			</div>
			
        </ul>
		
        <br class="clr" />
    </div>
</div><!-- end #footer -->
<div class="light_on"></div>
<?php if(getConfig(2) !== 'none' && $_SESSION["ipos_notice"] !== '1') { ?>
<div id="notice-show" style="display:none">
<!--<div class="title-nt">Thông báo <span id="close-scroll-notice" class="close"></span></div>-->
<div class="noidung-nt">
<?=nl2br(getConfig(2));?>
</div>
</div>
<? } ?>